$('.mui-collapse-content').on('tap',function(){
	var txt=$(this).find('p').text();
	$('.taskClass').html(txt);
	$('.mui-table-view-cell').removeClass('mui-active')
})


function sumbit() {
    var check=true;
    mui("#taskForm input").each(function() {
        //若当前input为空，则alert提醒
        if(!this.value || this.value.trim() == "") {
            var label = this.previousElementSibling;
            mui.alert(label.innerText + "不允许为空");
            check = false;
            return false;
        }
    }); //校验通过，继续执行业务逻辑

    var order_title =$("#order_title").var();
    var order_desc =$("#order_desc").var();
    var re_address =$("#re_address").var();
    var tel =$("#tel").var();
    var amount =$("#amount").var();

    var sdata = {
        order_title:order_title,
        order_desc:order_desc,
        re_address:re_address,
        tel:tel,
        amount:amount
    }

    mui.ajax('http://server-name/login.php',{
        data:sdata,
        dataType:'json',//服务器返回json格式数据
        type:'post',//HTTP请求类型
        timeout:10000,//超时时间设置为10秒；
        success:function(data){
            if(data.suc){
                mui.alert("去支付");
            }else {
                mui.alert(data.msg);
            }
        },
        error:function(xhr,type,errorThrown){
            //异常处理；
            console.log(type);
        }
    });


}
